<template>
  <div>
    <el-drawer
      :title="title"
      :visible.sync="drawer"
      direction="btt"
      :before-close="handleClose"
      custom-class="drawer"
      size="6.21333rem"
    >
      <p class="line"></p>
      <div class="drawer-div">
        <div v-for="(item, index) in symptomsList" :key="index">
          <p>{{item.number}}</p>
          <span>{{item.label}}</span>
        </div>
      </div>
    </el-drawer>
  </div>
</template>

<script>
export default {
  props:{
    symptomsList: {
      type: Array,
    }
  },
  data() {
    return {
      title: "",
      drawer: false,
    };
  },
  methods: {
    show(title) {
      this.title = title;
      this.drawer = true;
    },
    handleClose(done) {
      done();
    },
  },
};
</script>

<style lang="scss" scoped>
/deep/.drawer {
  border-radius: 8px 8px 2px 2px;
  .el-drawer__header {
    padding: 15px 20px 0 20px;
    margin-bottom: 10px;
    span {
      font-size: 18px;
      font-weight: bold;
      color: #1a1b1f;
    }
  }
  .line{
    width: 92vw;
    height: 1px;
    margin: 0 auto;
    background-color: #7e7e7e;
  }
  .drawer-div{
    display: flex;
    width: 100%;
    padding-top: 10px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    div{
      display: flex;
      width: 22vw;
      height: 16vw;
      margin: 2px 0;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #FFa2a2;
      p{
        font-size: 20px;
      }
      span{
        font-size: 10px;
      }
    }
  }
}
</style>